/**
 * <p>Copyright (c) 2011 深圳市鹏途信息技术有限公司 </p>
 * <p>				   All right reserved. 		     </p>
 * 
 * <p>项目名称 ： 	东莞交通工程质量监督综合业务系统        </p>
 * <p>创建者   :	adolf 
 * 
 * <p>描   述  :   StatisticsManager.java for com.pengtu.service.report    </p>
 * 
 * <p>最后修改 : $: 2011-9-15-下午05:51:24 v 1.0.0	 adolf   $     </p>
 * 
*/

package com.pengtu.service.report;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pengtu.dao.QueryFilter;
import com.pengtu.dao.report.MaterialcheckDao;
import com.pengtu.dao.report.MaterialtestDao;
import com.pengtu.dao.report.StandardtestDao;
import com.pengtu.entity.LabelValue;
import com.pengtu.entity.report.Materialcheck;
import com.pengtu.entity.report.Materialtest;
import com.pengtu.entity.report.Standardtest;

/**
 * 
 * StatisticsManager
 * 
 * 2011-9-15 下午05:51:24
 * 
 * @version 1.0.0
 * 
 */
@Service
@Transactional
public class StatisticsManager {

	//**************Materialcheck *****************************//
	
	@Autowired
	private MaterialcheckDao materialcheckDao;

	// Materialcheck Manager //
	@Transactional(readOnly = true)
	public Materialcheck getMaterialcheck(String id) {
		return materialcheckDao.get(id);
	}

	@Transactional(readOnly = true)
	public List<Materialcheck> getAllMaterialcheck() {
		return materialcheckDao.getAll();
	}
	
	public void saveMaterialcheck(Materialcheck materialcheck) {
		materialcheckDao.save(materialcheck);
	}

	public void deleteMaterialcheck(String id) {
		materialcheckDao.delete(id);
	}
	
	@Transactional(readOnly = true)
	public List<LabelValue> getMCBatch(String conSignId) {
		// TODO Auto-generated method stub
		return materialcheckDao.find(conSignId);
	}
	
	@Transactional(readOnly = true)
	public List<Materialcheck> getprojMacheck(QueryFilter queryfilter) {
		// TODO Auto-generated method stub
		return materialcheckDao.find(queryfilter);
	}
	//**************MaterialtestManager *****************************//
	
	@Autowired
	private MaterialtestDao materialtestDao;

	// Materialtest Manager //
	@Transactional(readOnly = true)
	public Materialtest getMaterialtest(String id) {
		return materialtestDao.get(id);
	}

	@Transactional(readOnly = true)
	public List<Materialtest> getAllMaterialtest() {
		return materialtestDao.getAll();
	}
	
	@Transactional(readOnly = true)
	public List<Materialtest> getprojMaters(QueryFilter queryfilter) {
		// TODO Auto-generated method stub
		return materialtestDao.find(queryfilter);
	}
	
	public void saveMaterialtest(Materialtest materialtest) {
		materialtestDao.save(materialtest);
	}

	public void deleteMaterialtest(String id) {
		materialtestDao.delete(id);
	}
	@Transactional(readOnly = true)
	public List<LabelValue> getMTBatch(String conSignId) {
		// TODO Auto-generated method stub
		return materialtestDao.find(conSignId);
	}
	
	//**************StandardtestManager *****************************//
	
	
	@Autowired
	private StandardtestDao standardtestDao;

	// Standardtest Manager //
	@Transactional(readOnly = true)
	public Standardtest getStandardtest(String id) {
		return standardtestDao.get(id);
	}

	@Transactional(readOnly = true)
	public List<Standardtest> getAllStandardtest() {
		return standardtestDao.getAll();
	}
	
	public void saveStandardtest(Standardtest standardtest) {
		standardtestDao.save(standardtest);
	}

	public void deleteStandardtest(String id) {
		standardtestDao.delete(id);
	}
	@Transactional(readOnly = true)
	public List<Standardtest> getprojStandards(QueryFilter queryfilter) {
		// TODO Auto-generated method stub
		return standardtestDao.find(queryfilter);
	}
	@Transactional(readOnly = true)
	public List<LabelValue> getSTBatch(String conSignId) {
		// TODO Auto-generated method stub
		return standardtestDao.find(conSignId);
	}
}
